<%@ page import="java.io.PrintWriter" %>
<%@ page import="java.util.Arrays" %><%--
<%--
  Created by IntelliJ IDEA.
  User: 夏天
  Date: 2022/12/12
  Time: 12:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    HttpSession session1 = request.getSession();
    String[] books = (String[])session1.getAttribute("books");
    String name = (String)session1.getAttribute("name");
    String address = (String)session1.getAttribute("address");
    PrintWriter printWriter = response.getWriter();
%>
<html>
<head>
    <title>Title</title>
    <style>
        table{
            border: 1px solid black;
        }
        td{
            border: 1px solid black;
        }
    </style>
</head>
<body>
<form action="/c4/step3">
    <%printWriter.print("<h1>Step3:订单确认</h1>");%>
    <%printWriter.print("<table>");%>
    <%printWriter.print("<tr>");%>
    <%printWriter.print("<td>顾客姓名</td>");%>
    <%printWriter.print("<td>"+name+"</td>");%>
    <%printWriter.print("<tr>");%>
    <%printWriter.print("<td>地址</td>");%>
    <%printWriter.print("<td>"+address+"</td>");%>
    <%printWriter.print("<tr>");%>
    <%printWriter.print("<tr>");%>
    <%printWriter.print("<td>订货项目</td>");%>
    <%printWriter.print("<td>"+ Arrays.toString(books) +"<td>");%>
    <%printWriter.print("<tr>");%>
    <%printWriter.print("<table>");%>
</form>
</body>
</html>